emacs.git
3 months agoAdd 'inhibit-native-compilation'
Lars Ingebrigtsen [Mon, 3 Oct 2022 13:26:04 +0000 (15:26 +0200)]
Add 'inhibit-native-compilation'

The following upstream patch has been backported:

  Add new variable 'inhibit-native-compilation'

  * lisp/startup.el (normal-top-level): Set
  inhibit-native-compilation from environment variable.

  * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Don't write
  trampolines to disk.

  * lisp/progmodes/elisp-mode.el
  (emacs-lisp-native-compile-and-load): Adjust.

  * src/comp.c (syms_of_comp): New variable
  inhibit-native-compilation.
  (maybe_defer_native_compilation): Use it.

Origin: upstream, commit: 5fec9182dbeffa88cef6651d8c798ef9665d6681
Forwarded: not-needed

3 months agoMark flaky test process-tests/multiple-threads-waiting as unstable
Sean Whitton [Tue, 15 Nov 2022 23:26:59 +0000 (16:26 -0700)]
Mark flaky test process-tests/multiple-threads-waiting as unstable

It times out:

     passed  22/28  process-tests/fd-setsize-no-crash/make-serial-process (0.021449 sec)
  make[5]: *** [Makefile:182: src/process-tests.log] Error 134
    GEN      src/regex-emacs-tests.log
    GEN      src/search-tests.log
    GEN      src/syntax-tests.log
    GEN      src/textprop-tests.log
    GEN      src/thread-tests.log
    GEN      src/timefns-tests.log
    GEN      src/undo-tests.log
    GEN      src/xdisp-tests.log
    GEN      src/xfaces-tests.log
    GEN      src/xml-tests.log
  make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-gtk/test'
  make[4]: [Makefile:335: check-doit] Error 2 (ignored)

  SUMMARY OF TEST RESULTS
  -----------------------
  Files examined: 375
  Ran 5408 tests, 28 failed to run, 5273 results as expected, 0 unexpected, 135 skipped
  1 files did not finish:
    src/process-tests.log
  make[4]: *** [Makefile:336: check-doit] Error 2

3 months agoMark test-undo-region as unstable
Sean Whitton [Tue, 15 Nov 2022 22:54:41 +0000 (15:54 -0700)]
Mark test-undo-region as unstable

It is repeatedly failing on Debian's arch:all autobuilders, though
seemingly nowhere else:

     passed  40/44  simple-transpose-subr (0.000396 sec)
  Test test-undo-region backtrace:
    signal(ert-test-failed (((should (= (length (delq nil (undo-make-sel
    ert-fail(((should (= (length (delq nil (undo-make-selective-list 1 9
    #f(compiled-function () #<bytecode 0x52f126616d2cdbd>)()
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name test-undo-region :documentation nil :
    ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
    ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
    ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
    ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
    command-line-1(("-L" ":/<<PKGBUILDDIR>>/debian/build
    command-line()
    normal-top-level()
  Test test-undo-region condition:
      (ert-test-failed
       ((should
         (=
   (length ...)
   2))
        :form
        (= 3 2)
        :value nil))
     FAILED  41/44  test-undo-region (0.000185 sec)

3 months agopdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k
John Paul Adrian Glaubitz [Sat, 24 Sep 2022 18:37:18 +0000 (13:37 -0500)]
pdumper: set DUMP_RELOC_ALIGNMENT_BITS=1 for m68k

Before the change builds would fail like this:

  (...)
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/vc-hooks.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/vc/ediff-hook.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/uniquify.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/electric.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/emacs-lisp/eldoc.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/cus-start.el (source)...
  Loading /<<BUILDDIR>>/emacs-27.1+1/debian/build-src/lisp/tooltip.el (source)...
  Finding pointers to doc strings...
  Finding pointers to doc strings...done
  Dumping under the name bootstrap-emacs.pdmp
  dumping fingerprint: 7b5c59c589dc151eb1e4269bd83fbe809616b5cb9bb5c80014d5b560b391dfb6
  dump relocation out of range

[rlb@defaultvalue.org: create commit message]

Origin: debian
Bug: https://bugs.gnu.org/44531
Bug-Debian: http://bugs.debian.org/1019130
Forwarded: not-needed

3 months agoMark vc-bzr-test-fauilt-bzr-autoloads as unstable for now
Rob Browning [Sun, 16 Dec 2018 23:13:36 +0000 (17:13 -0600)]
Mark vc-bzr-test-fauilt-bzr-autoloads as unstable for now

Currently the test fails like this:

  Running 3 tests (2018-12-17 12:17:43-0600)
     passed  1/3  vc-bzr-test-bug9726
  Mark set
  Press C-c C-c when you are done editing.
  Enter a change comment.  Type C-c C-c when done
     passed  2/3  vc-bzr-test-bug9781
  Falling back on "slow" status detection ((file-missing "Opening input file" "No such file or directory" "/tmp/vc-bzr-testVlgmsb/bzr/.bzr/checkout/dirstate"))
  Error: (error "Running bzr status --no-classify loaddefs.el...FAILED (status 3)")
  Warnings in `bzr' output: bzr: ERROR: invalid header line: ''

  Error: (error "Running bzr status --no-classify loaddefs.el...FAILED (status 3)")
  Warnings in `bzr' output: bzr: ERROR: invalid header line: ''

  Test vc-bzr-test-faulty-bzr-autoloads backtrace:
    logand(nil 128)
    vc-mode-line("/tmp/vc-bzr-testVlgmsb/bzr/loaddefs.el" Bzr)
    vc-refresh-state()
    run-hooks(find-file-hook)
    after-find-file(t t)
    find-file-noselect-1(#<buffer loaddefs.el> "/tmp/vc-bzr-testVlgmsb/b
    find-file-noselect("/tmp/vc-bzr-testVlgmsb/bzr/loaddefs.el")
    autoload-find-generated-file()
    update-directory-autoloads("/tmp/vc-bzr-testVlgmsb/bzr/")
    (progn (update-directory-autoloads default-directory) t)
    (setq value-35 (progn (update-directory-autoloads default-directory)
    (unwind-protect (setq value-35 (progn (update-directory-autoloads de
    (if (unwind-protect (setq value-35 (progn (update-directory-autoload
    (let (form-description-36) (if (unwind-protect (setq value-35 (progn
    (let ((value-35 (gensym "ert-form-evaluation-aborted-"))) (let (form
    (progn (call-process vc-bzr-program nil nil nil "init") (let ((temp-
    (unwind-protect (progn (call-process vc-bzr-program nil nil nil "ini
    (let* ((homedir (make-temp-file "vc-bzr-test" t)) (bzrdir (expand-fi
    (lambda nil (let* ((fn-30 (function executable-find)) (args-31 (cond
    ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
    ert-run-test(#s(ert-test :name vc-bzr-test-faulty-bzr-autoloads :doc
    ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :expensi
    ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
    ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
    ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
    eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
    command-line-1(("-L" ":/home/locke/tmp/main-26.1/debian/build-src/te
    command-line()
    normal-top-level()
  Test vc-bzr-test-faulty-bzr-autoloads condition:
      (wrong-type-argument number-or-marker-p nil)
     FAILED  3/3  vc-bzr-test-faulty-bzr-autoloads

  Ran 3 tests, 2 results as expected, 1 unexpected (2018-12-17 12:17:46-0600)

  1 unexpected results:
     FAILED  vc-bzr-test-faulty-bzr-autoloads

3 months agoKill gpg agent in package-test.el to avoid a race
Rob Browning [Mon, 10 Oct 2016 22:35:56 +0000 (17:35 -0500)]
Kill gpg agent in package-test.el to avoid a race

package-test.el should no longer fail during clean up.

* Previously a delete-directories call raced with the gpg agent's own
  cleanup process (presumably triggered by the first deletion of one of
  the agent's sockets).  As a result, it looks like the agent might
  delete one of its sockets after delete-directories had decided to
  delete the socket, but before it made the attempt, causing an
  exception.

* To fix the problem, explicitly ask gpg-connect-agent to kill the agent
  before attempting to delete the gnupg home directory, and then delete
  via "rm -rf" to ignore any vanishing files.

3 months agoDon't try to build src/macuvs.h (via IVD_Sequences.txt)
Rob Browning [Wed, 22 Oct 2014 00:10:17 +0000 (19:10 -0500)]
Don't try to build src/macuvs.h (via IVD_Sequences.txt)

These are OS X specific, and were removed for now, due to uncertainty
over the licensing.

3 months agoModify the output of (version) to indicate Debian modifications
Rob Browning [Tue, 5 Apr 2011 03:46:28 +0000 (22:46 -0500)]
Modify the output of (version) to indicate Debian modifications

The output of (version) has been modified to indicate Debian modifications.

Author: Rob Browning <rlb@defaultvalue.org>
Added-by: Rob Browning <rlb@defaultvalue.org>
3 months agoAdjust documentation references for Debian
Rob Browning [Tue, 5 Apr 2011 03:46:25 +0000 (22:46 -0500)]
Adjust documentation references for Debian

Various documentation references have been adjusted for Debian.

References to /usr/local/... have been changed to /usr/... as
appropriate, etc.

3 months agoRemove files that appear to be incompatible with the DFSG
Rob Browning [Tue, 5 Apr 2011 03:46:24 +0000 (22:46 -0500)]
Remove files that appear to be incompatible with the DFSG

Files that appear to be incompatible with the DFSG have been removed.

A number of files have been removed from this package because their
licenses are not compatible with the Debian Free Software Guidelines
(DFSG), or because it wasn't completely clear that their licenses are
compatible.

In particular, all of the files which are covered under the GFDL and
have invariant sections have been removed in accordance with this
General Resolution: http://www.debian.org/vote/2006/vote_001.

The files that have been removed, but still appear to be
distributable, have been moved to packages in Debian's non-free
section.

Author: Rob Browning <rlb@defaultvalue.org>
Added-by: Rob Browning <rlb@defaultvalue.org>
Status: new

3 months agoRun debian-startup and set debian-emacs-flavor
Rob Browning [Tue, 5 Apr 2011 03:46:22 +0000 (22:46 -0500)]
Run debian-startup and set debian-emacs-flavor

Emacs runs debian-startup and sets debian-emacs-flavor.

* Emacs runs debian-startup during the startup process unless
  site-run-file is false.

* The global variable debian-emacs-flavor is bound to 'emacs.

Author: Rob Browning <rlb@defaultvalue.org>

3 months agoPrefer /usr/share/info/emacs/
Rob Browning [Sun, 7 Apr 2013 20:03:05 +0000 (15:03 -0500)]
Prefer /usr/share/info/emacs/

Emacs prefers /usr/share/info/emacs to /usr/share/info.

The value of Info-default-directory-list has been augmented via
lisp/info.el to include /usr/share/info/emacs before /usr/share/info.

3 months agoMerge upstream version 30.2
Rob Browning [Sun, 9 Nov 2025 19:36:42 +0000 (13:36 -0600)]
Merge upstream version 30.2

6 months ago; * make-dist: Include ELisp hierarchy diagram in tarballs (bug#76441).
Eli Zaretskii [Thu, 14 Aug 2025 09:04:03 +0000 (05:04 -0400)]
; * make-dist: Include ELisp hierarchy diagram in tarballs (bug#76441).

6 months ago; Update lisp/ldefs-boot.el. Do not merge to master.
Eli Zaretskii [Thu, 14 Aug 2025 08:24:11 +0000 (04:24 -0400)]
; Update lisp/ldefs-boot.el.  Do not merge to 

6 months agoUpdate files for Emacs 30.2
Eli Zaretskii [Thu, 14 Aug 2025 08:05:28 +0000 (04:05 -0400)]
Update files for Emacs 30.2

* ChangeLog.5:
* etc/AUTHORS:
* etc/HISTORY: Update for Emacs 30.2.

* admin/admin.el (set-version): Fix handling of official releases.

6 months ago* admin/admin.el (set-version): Fix handling of official releases.
Eli Zaretskii [Thu, 14 Aug 2025 07:54:52 +0000 (03:54 -0400)]
* admin/admin.el (set-version): Fix handling of official releases.

6 months agoBump Emacs version
Eli Zaretskii [Thu, 14 Aug 2025 07:52:16 +0000 (03:52 -0400)]
Bump Emacs version

* README:
* configure.ac:
* exec/configure.ac:
* java/AndroidManifest.xml.in (Version-code):
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 30.2.

6 months ago; * etc/NEWS: Update for Emacs 30.2.
Eli Zaretskii [Thu, 14 Aug 2025 07:03:07 +0000 (03:03 -0400)]
; * etc/NEWS: Update for Emacs 30.2.

6 months ago; * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Doc fix (bug#79206).
Eli Zaretskii [Sun, 10 Aug 2025 08:45:31 +0000 (11:45 +0300)]
; * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Doc fix (bug#79206).

6 months ago; Fix autorevert-tests for MS-Window
Eli Zaretskii [Sat, 9 Aug 2025 08:29:15 +0000 (11:29 +0300)]
; Fix autorevert-tests for MS-Window

* test/lisp/autorevert-tests.el
(auto-revert-test04-auto-revert-mode-dired): Fix for MS-Windows.

6 months agoHandle remote file names in cmuscheme.el
Vinícius Moraes [Sat, 2 Aug 2025 23:52:27 +0000 (20:52 -0300)]
Handle remote file names in cmuscheme.el

* lisp/cmuscheme.el (scheme-load-file, scheme-compile-file): Use
'file-local-name' to handle file names on remote systems.
(Bug#79163)

Copyright-paperwork-exempt: yes

6 months ago* lisp/vc/vc.el (vc-register): Fix interactive spec (bug#79183).
Sean Whitton [Wed, 6 Aug 2025 14:15:57 +0000 (15:15 +0100)]
* lisp/vc/vc.el (vc-register): Fix interactive spec (bug#79183).

6 months ago; windows installer: set x64 registry keys (tiny change)
Alberto Santini [Tue, 5 Aug 2025 02:55:29 +0000 (21:55 -0500)]
; windows installer: set x64 registry keys (tiny change)

* admin/nt/dist-build/emacs.nsi: set x64 registry keys

6 months ago; Fix documentation of 'find-file-noselect'
Eli Zaretskii [Sat, 2 Aug 2025 14:33:15 +0000 (17:33 +0300)]
; Fix documentation of 'find-file-noselect'

* doc/lispref/files.texi (Visiting Functions):
* lisp/files.el (find-file-noselect): Document that NOWARN non-nil
also bypasses the file's last change verification.  (Bug#79127)

6 months ago* doc/misc/gnus.texi (Category Syntax): Update gnus-agent-predicate.
James Thomas [Tue, 29 Jul 2025 20:24:43 +0000 (01:54 +0530)]
* doc/misc/gnus.texi (Category Syntax): Update gnus-agent-predicate.

This updates the Gnus manual due to recent code change (bug#79123).

6 months ago; Improve documentation of change hooks
Eli Zaretskii [Wed, 30 Jul 2025 16:48:07 +0000 (19:48 +0300)]
; Improve documentation of change hooks

* doc/lispref/text.texi (Change Hooks): Warn against buffer
changes in the hook functions.  (Bug#79115)

6 months ago; * lisp/image.el (image-supported-file-p): Doc fix (bug#79117).
Eli Zaretskii [Tue, 29 Jul 2025 11:08:29 +0000 (14:08 +0300)]
; * lisp/image.el (image-supported-file-p): Doc fix (bug#79117).

6 months ago; Update documentation of GC in ELisp manual
Eli Zaretskii [Mon, 28 Jul 2025 13:14:44 +0000 (16:14 +0300)]
; Update documentation of GC in ELisp manual

* doc/lispref/internals.texi (Garbage Collection): Update default
values for GC-related thresholds.  (Bug#79074)

6 months agoPrefer "tls" to "ssl" in documentation
Robert Pluim [Mon, 28 Jul 2025 12:11:50 +0000 (14:11 +0200)]
Prefer "tls" to "ssl" in documentation

* doc/misc/gnus.texi (NNTP): Refer to 'nntp-open-tls-stream'.
(Direct Functions, Customizing the IMAP Connection): Add
commentary about desirability of STARTTLS.  Correct
documentation about use of GnuTLS.  Use 'tls in example.
* lisp/gnus/nnimap.el (nnimap-server-port): Mention 'tls in
preference to 'ssl.
* lisp/gnus/nntp.el (nntp-open-connection-function)
(nntp-never-echoes-commands): Document 'nntp-open-tls-stream' as
preferred to 'nntp-open-ssl-stream'.

6 months agoloaddefs-generate--rubric: Note about committing ldefs-boot.el
Sean Whitton [Sat, 26 Jul 2025 09:22:09 +0000 (10:22 +0100)]
loaddefs-generate--rubric: Note about committing ldefs-boot.el

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--rubric):
Note that ldefs-boot.el should be committed on its own.

6 months ago; Fix documentation of 'other-window'
Eli Zaretskii [Sat, 26 Jul 2025 08:36:16 +0000 (11:36 +0300)]
; Fix documentation of 'other-window'

* doc/lispref/windows.texi (Cyclic Window Ordering):
* lisp/window.el (other-window): Document ALL-FRAMES in interactive
invocations.

6 months ago; * lisp/international/quail.el (quail-insert-kbd-layout): Commentary.
Eli Zaretskii [Fri, 25 Jul 2025 12:25:40 +0000 (15:25 +0300)]
; * lisp/international/quail.el (quail-insert-kbd-layout): Commentary.

6 months ago; face-font-family-alternatives, fixed-pitch: Comments.
Sean Whitton [Fri, 25 Jul 2025 08:05:24 +0000 (09:05 +0100)]
; face-font-family-alternatives, fixed-pitch: Comments.

7 months agoFix Eshell call to 'string-suffix-p' when checking for trailing newline
Jim Porter [Mon, 21 Jul 2025 04:17:05 +0000 (21:17 -0700)]
Fix Eshell call to 'string-suffix-p' when checking for trailing newline

* lisp/eshell/esh-io.el (eshell--output-maybe-n): Fix call.

* test/lisp/eshell/esh-io-tests.el
(esh-io-test/output-newline/add-newline)
(esh-io-test/output-newline/no-newline)
(esh-io-test/output-newline/no-extra-newline): New tests (bug#79063).

7 months ago* etc/PROBLEMS: Describe how to work around screen reader TAB issue
Robert Pluim [Mon, 21 Jul 2025 13:44:49 +0000 (15:44 +0200)]
* etc/PROBLEMS: Describe how to work around screen reader TAB issue

7 months ago(gnus)Scoring Tips: New tip regarding header continuation lines
Sean Whitton [Mon, 21 Jul 2025 08:54:02 +0000 (09:54 +0100)]
(gnus)Scoring Tips: New tip regarding header continuation lines

* doc/misc/gnus.texi (Scoring Tips): New "Continuation lines
when scoring on other headers" tip.

7 months ago; Fix last change (bug#79042)
Eli Zaretskii [Sat, 19 Jul 2025 10:05:05 +0000 (13:05 +0300)]
; Fix last change (bug#79042)

7 months ago; Fix last change
Eli Zaretskii [Sat, 19 Jul 2025 10:04:29 +0000 (13:04 +0300)]
; Fix last change

* lisp/image/image-dired-dired.el
(image-dired-dired-toggle-marked-thumbs): Doc fix (bug#79042),

7 months ago; Update doc strings of Dired functions due to 'marked' value of ARG
Eli Zaretskii [Sat, 19 Jul 2025 09:50:43 +0000 (12:50 +0300)]
; Update doc strings of Dired functions due to 'marked' value of ARG

* lisp/dired-aux.el (dired-do-compress, dired-do-byte-compile)
(dired-do-load, dired-do-redisplay):
* lisp/dired.el (dired-map-over-marks, dired-get-marked-files)
(dired-mouse-drag, dired-do-delete): Doc fixes (bug#79042).

7 months ago; * lisp/battery.el (battery-bsd-apm): Explain a FIXME (bug#79040).
Manuel Giraud [Thu, 17 Jul 2025 12:22:26 +0000 (14:22 +0200)]
; * lisp/battery.el (battery-bsd-apm): Explain a FIXME (bug#79040).

7 months agoFix :box attribute of faces in Leuven themes.
Ken Mankoff [Wed, 16 Jul 2025 09:44:47 +0000 (05:44 -0400)]
Fix :box attribute of faces in Leuven themes.

* etc/themes/leuven-dark-theme.el:
* etc/themes/leuven-theme.el: Fix 'lui-highlight-face' face.
(Bug#79029)

7 months ago; define-globalized-minor-mode: Fix capitalization.
Sean Whitton [Wed, 16 Jul 2025 10:20:08 +0000 (11:20 +0100)]
; define-globalized-minor-mode: Fix capitalization.

7 months ago; * lisp/vc/diff-mode.el (diff-mode): Scare-quote 'normal'.
Sean Whitton [Wed, 16 Jul 2025 10:17:58 +0000 (11:17 +0100)]
; * lisp/vc/diff-mode.el (diff-mode): Scare-quote 'normal'.

7 months ago; * lisp/window.el (window-state-put): Fix a typo (bug#79013).
Eli Zaretskii [Mon, 14 Jul 2025 11:35:31 +0000 (14:35 +0300)]
; * lisp/window.el (window-state-put): Fix a typo (bug#79013).

7 months ago; define-globalized-minor-mode: Fix info node link in docstring.
Sean Whitton [Sun, 13 Jul 2025 11:24:12 +0000 (12:24 +0100)]
; define-globalized-minor-mode: Fix info node link in docstring.

7 months ago; * doc/emacs/custom.texi (Init File): Mention "M-x customize".
Eli Zaretskii [Sat, 12 Jul 2025 09:01:05 +0000 (12:01 +0300)]
; * doc/emacs/custom.texi (Init File): Mention "M-x customize".

7 months ago; Fix indexing in Emacs user manual
Eli Zaretskii [Fri, 11 Jul 2025 06:24:50 +0000 (09:24 +0300)]
; Fix indexing in Emacs user manual

* doc/emacs/frames.texi (Creating Frames):
* doc/emacs/windows.texi (Pop Up Window): Fix indexing and
wording.  (Bug#78945)

7 months agoNativecomp don't error with undeclared types (bug#6573) (don't merge)
Andrea Corallo [Tue, 17 Jun 2025 07:06:45 +0000 (09:06 +0200)]
Nativecomp don't error with undeclared types (bug#6573) (don't merge)

Backporting f38e969e472 from trunk to emacs-30

* test/src/comp-resources/comp-test-funcs.el (comp-test-76573-1-f): New
function.
* lisp/emacs-lisp/comp-cstr.el (comp-supertypes): Don't error if 'type'
is unknown.

7 months ago; Fix typos
Robert Pluim [Mon, 7 Jul 2025 12:49:23 +0000 (14:49 +0200)]
; Fix typos

* lisp/emacs-lisp/warnings.el (warning-display-at-bottom): Fix typo.
* lisp/replace.el (query-replace-help): Typo fix.

7 months agoFix 'kill-ring-deindent-mode'
Eli Zaretskii [Sat, 26 Apr 2025 14:30:20 +0000 (17:30 +0300)]
Fix 'kill-ring-deindent-mode'

* lisp/indent-aux.el
(kill-ring-deindent-buffer-substring-function): Fix deindenting
for modes which set 'indent-tab-mode' to nil.  (Bug#77981)

(cherry picked from commit 1c7fe501fedb41aaf5b22d82dab5a365f86e4c85)

7 months ago; * lisp/replace.el (query-replace-help): Fix help text (bug#78916).
Eli Zaretskii [Sat, 5 Jul 2025 06:47:23 +0000 (09:47 +0300)]
; * lisp/replace.el (query-replace-help): Fix help text (bug#78916).

7 months ago; * lisp/emacs-lisp/warnings.el (warning-display-at-bottom): Doc fix.
Eli Zaretskii [Sat, 5 Jul 2025 06:17:40 +0000 (09:17 +0300)]
; * lisp/emacs-lisp/warnings.el (warning-display-at-bottom): Doc fix.

7 months agoHandle ts_node_type return NULL (bug#78938)
Yuan Fu [Fri, 4 Jul 2025 20:13:36 +0000 (13:13 -0700)]
Handle ts_node_type return NULL (bug#78938)

* src/treesit.c (treesit_traverse_match_predicate): Handle the
case when ts_node_type returns NULL.
(Ftreesit_node_type): Add some comment.

7 months agoImprove documentation of 'warning-display-at-bottom'
Eli Zaretskii [Fri, 4 Jul 2025 12:02:29 +0000 (15:02 +0300)]
Improve documentation of 'warning-display-at-bottom'

* lisp/emacs-lisp/warnings.el (warning-display-at-bottom):
* doc/lispref/display.texi (Warning Options):
* doc/emacs/windows.texi (Temporary Displays):
* etc/NEWS: Improve documentation of 'warning-display-at-bottom'.
See https://lists.gnu.org/archive/html/emacs-devel/2025-07/msg00024.html
for more details.

7 months agoHandle the case when ts_node_type returns NULL (bug#78938)
Yuan Fu [Fri, 4 Jul 2025 06:36:44 +0000 (23:36 -0700)]
Handle the case when ts_node_type returns NULL (bug#78938)

* src/treesit.c (Ftreesit_node_type): Handle NULL.

7 months ago; * lisp/emacs-lisp/bytecomp.el (compilation-safety): Doc fix (bug#78394).
Eli Zaretskii [Tue, 1 Jul 2025 11:17:42 +0000 (14:17 +0300)]
; * lisp/emacs-lisp/bytecomp.el (compilation-safety): Doc fix (bug#78394).

7 months ago; * doc/lispref/functions.texi (Mapping Functions): Fix wording (bug#78930).
Eli Zaretskii [Mon, 30 Jun 2025 19:06:15 +0000 (22:06 +0300)]
; * doc/lispref/functions.texi (Mapping Functions): Fix wording (bug#78930).

7 months agoPopulate the ':title' in EWW when defaulting to readable mode
Jim Porter [Thu, 19 Jun 2025 19:23:24 +0000 (12:23 -0700)]
Populate the ':title' in EWW when defaulting to readable mode

Do not merge to master.

* lisp/net/eww.el (eww-display-document): Always render the full
document first to populate ':title' (bug#77299).

7 months ago; * doc/lispref/threads.texi (Condition Variables): Fix wording.
Eli Zaretskii [Sat, 28 Jun 2025 19:17:06 +0000 (22:17 +0300)]
; * doc/lispref/threads.texi (Condition Variables): Fix wording.

7 months agobug#78901: [PATCH] js-ts-mode: Fix auto-mode-alist regexp
Liam Hupfer [Thu, 26 Jun 2025 03:47:34 +0000 (22:47 -0500)]
bug#78901: [PATCH] js-ts-mode: Fix auto-mode-alist regexp

Align the js-ts-mode entry with the javascript-mode entries in the
default auto-mode-alist value in lisp/files.el. Otherwise, js-ts-mode is
not associated with .js files.

* lisp/progmodes/js.el (js-ts-mode): Fix auto-mode-alist regexp.

Fixes: 2023-01-20 6b2f85caa6ca "Make tree-sitter based modes optional"
7 months agoMerge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Wed, 25 Jun 2025 16:19:36 +0000 (12:19 -0400)]
Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30

7 months agoFix 'insert-directory' in Turkish language-environment
Eli Zaretskii [Wed, 25 Jun 2025 16:17:59 +0000 (12:17 -0400)]
Fix 'insert-directory' in Turkish language-environment

* lisp/files.el (insert-directory-clean, insert-directory): Use
case-sensitive search for "//DIRED//" and similar strings.
(Bug#78894)

7 months agoFix job control in remote shell
Michael Albinus [Wed, 25 Jun 2025 07:32:20 +0000 (09:32 +0200)]
Fix job control in remote shell

* lisp/net/tramp-sh.el (tramp-methods) <rsync>:
Adapt `tramp-direct-async' argument.  (Bug#71050, Bug#71259)

7 months ago; * doc/emacs/package.texi (Package Statuses): Clarify "new".
Eli Zaretskii [Sun, 22 Jun 2025 08:13:55 +0000 (11:13 +0300)]
; * doc/emacs/package.texi (Package Statuses): Clarify "new".

8 months agoWorkaround for "M-x man" on macOS 15 and later
Eli Zaretskii [Sat, 21 Jun 2025 09:33:12 +0000 (12:33 +0300)]
Workaround for "M-x man" on macOS 15 and later

* lisp/man.el (Man-init-defvars): Workaround for macOS Sed.  Do
not merge to master.  (Bug#77944)

8 months ago; Fix customization and doc strings in pp.el
Eli Zaretskii [Mon, 16 Jun 2025 07:00:41 +0000 (10:00 +0300)]
; Fix customization and doc strings in pp.el

* lisp/emacs-lisp/pp.el (pp-default-function): Fix :tag's.
(pp-29, pp-28): Doc fixes.  (Bug#78801)

8 months agoInsert missing step to make use of directory tracking OSC codes
Sean Whitton [Wed, 11 Jun 2025 14:23:32 +0000 (15:23 +0100)]
Insert missing step to make use of directory tracking OSC codes

* doc/emacs/misc.texi (Interactive Shell): Say to add
comint-osc-process-output to comint-output-filter-function.

8 months ago* lisp/keymap.el (keymap-set): Refer to 'key-description'. (Bug#78714)
Robert Pluim [Tue, 10 Jun 2025 07:48:20 +0000 (09:48 +0200)]
* lisp/keymap.el (keymap-set): Refer to 'key-description'.  (Bug#78714)

8 months agoSupport new tree-sitter grammar filename format (bug#78754)
Yuan Fu [Wed, 11 Jun 2025 05:55:58 +0000 (22:55 -0700)]
Support new tree-sitter grammar filename format (bug#78754)

Previously Emacs only looks for filenames like
libtree-sitter-json.so.0.0.  Now Emacs also look for filenames
like libtree-sitter-json.so.15.0.

* src/treesit.c:
(treesit_load_language_push_for_each_suffix): Add versioned
candidate to candidate list too.

8 months agoFix crash when evaluating "(signal nil 5)" (bug#78738)
Pip Cet [Tue, 10 Jun 2025 12:00:30 +0000 (12:00 +0000)]
Fix crash when evaluating "(signal nil 5)" (bug#78738)

The docstring already warns against calling signal with a nil
error symbol, which is for internal use only, but we can avoid crashing
in this case.

* src/eval.c (Fsignal): Produce a "peculiar error" for more arguments
involving non-lists.

8 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Mon, 9 Jun 2025 14:02:03 +0000 (17:02 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

8 months ago; * doc/lispref/modes.texi (Font Lock Basics): Remove old info (bug#78720).
Eli Zaretskii [Sun, 8 Jun 2025 15:43:20 +0000 (18:43 +0300)]
; * doc/lispref/modes.texi (Font Lock Basics): Remove old info (bug#78720).

8 months agoAdapt emba integration (don't merge)
Michael Albinus [Sun, 8 Jun 2025 12:47:26 +0000 (14:47 +0200)]
Adapt emba integration (don't merge)

* test/infra/Dockerfile.emba (emacs-inotify): Don't install clangd.

* test/infra/gitlab-ci.yml (.job-template): Make actions in
after_script more robust.

8 months ago; * doc/emacs/misc.texi (Network Security): Fix typo.
Robert Pluim [Thu, 5 Jun 2025 14:09:11 +0000 (16:09 +0200)]
; * doc/emacs/misc.texi (Network Security): Fix typo.

8 months ago; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix (bug#78703).
Eli Zaretskii [Fri, 6 Jun 2025 07:00:20 +0000 (10:00 +0300)]
; * lisp/treesit.el (treesit-beginning-of-defun): Doc fix (bug#78703).

8 months agoMake xoauth2 auth fail when a smtp server replies 334 (Bug#78366)
Xiyue Deng [Fri, 16 May 2025 09:48:52 +0000 (02:48 -0700)]
Make xoauth2 auth fail when a smtp server replies 334 (Bug#78366)

* lisp/mail/smtpmail.el (smtpmail-try-auth-method): Throw error 535
when receiving a "334 server challenge" reply.

(cherry picked from commit 53371c959462a677a29ee869b3b6627facf3ed79)

8 months ago; * etc/PROBLEMS: Improve the item about 'C-S-u' in PGTK build.
Eli Zaretskii [Mon, 2 Jun 2025 15:34:21 +0000 (18:34 +0300)]
; * etc/PROBLEMS: Improve the item about 'C-S-u' in PGTK build.

8 months ago; * lisp/subr.el (setq-local): Doc fix (bug#78644).
Eli Zaretskii [Sat, 31 May 2025 08:12:58 +0000 (11:12 +0300)]
; * lisp/subr.el (setq-local): Doc fix (bug#78644).

8 months agoRevert "; * lisp/subr.el (setq-local): Doc fix (bug#78644)."
Eli Zaretskii [Sat, 31 May 2025 08:08:45 +0000 (11:08 +0300)]
Revert "; * lisp/subr.el (setq-local): Doc fix (bug#78644)."

This reverts commit cb9556d669c037c4e2f1a9c80adacad55948c706.
Some of its parts were not supposed to be installed.

8 months ago; * lisp/subr.el (setq-local): Doc fix (bug#78644).
Eli Zaretskii [Sat, 31 May 2025 07:05:06 +0000 (10:05 +0300)]
; * lisp/subr.el (setq-local): Doc fix (bug#78644).

8 months ago; * doc/lispref/searching.texi (Char Classes): Add speedup advice.
Eli Zaretskii [Thu, 29 May 2025 16:02:13 +0000 (19:02 +0300)]
; * doc/lispref/searching.texi (Char Classes): Add speedup advice.

8 months agoFix bug in 'todo-jump-to-category' (bug#78608)
Stephen Berman [Wed, 28 May 2025 15:17:23 +0000 (17:17 +0200)]
Fix bug in 'todo-jump-to-category' (bug#78608)

* lisp/calendar/todo-mode.el (todo-jump-to-category): Eliminate
comparison of the number of Todo categories before and after
specifying the category to jump to and replace it by a check of
whether there are any items in the category, since an existing
category should always have at least one item (perhaps done or
archived).

8 months agoFix gitlab-ci.yml (don't merge to master)
Michael Albinus [Tue, 27 May 2025 07:10:51 +0000 (09:10 +0200)]
Fix gitlab-ci.yml (don't merge to master)

* test/infra/gitlab-ci.yml (.job-template): Fix config.log name.
(test-filenotify-gio, test-eglot): Fix formatting.

8 months agotypescript-ts-mode: Improve function body indentation (bug#78121)
Konstantin Kharlamov [Tue, 29 Apr 2025 14:51:18 +0000 (21:51 +0700)]
typescript-ts-mode: Improve function body indentation (bug#78121)

Older code was calculating body indentation depending on function
parameters alignment.  This is incorrect, because if parameters are
misaligned, so will the function body.  Instead, use offset of the
previous standalone parent.

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--indent-rules): Stop depending on function
parameters indentation for calculating body content and the closing
`}'.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
(Function body with params misindented (bug#78121)): Add new test.

8 months ago; * CONTRIBUTE: Explain the line-width preferences.
Eli Zaretskii [Sun, 25 May 2025 09:08:02 +0000 (12:08 +0300)]
; * CONTRIBUTE: Explain the line-width preferences.

8 months ago; * doc/misc/use-package.texi (Hooks): Fix typo (bug#77609).
Eli Zaretskii [Sat, 24 May 2025 09:59:19 +0000 (12:59 +0300)]
; * doc/misc/use-package.texi (Hooks): Fix typo (bug#77609).

8 months agoFix documentation of use-package's ':hook' keyword
Eli Zaretskii [Sat, 24 May 2025 09:56:30 +0000 (12:56 +0300)]
Fix documentation of use-package's ':hook' keyword

* doc/misc/use-package.texi (Hooks): Document how to add several
functions to the same hook (bug#77609).

9 months ago* test/infra/gitlab-ci.yml (.job-template): Make it more robust.
Michael Albinus [Thu, 22 May 2025 11:18:11 +0000 (13:18 +0200)]
* test/infra/gitlab-ci.yml (.job-template): Make it more robust.

9 months ago; * lisp/emacs-lisp/find-func.el (find-function): Doc fix.
Eli Zaretskii [Thu, 22 May 2025 06:43:45 +0000 (09:43 +0300)]
; * lisp/emacs-lisp/find-func.el (find-function): Doc fix.

9 months agoFix todo-mode item insertion bug (bug#78506)
Stephen Berman [Tue, 20 May 2025 13:29:58 +0000 (15:29 +0200)]
Fix todo-mode item insertion bug (bug#78506)

* lisp/calendar/todo-mode.el (todo-insert-item--next-param): Unset
transient keymap on completing default or copy item insertion
command, to ensure that the next Todo mode key is recognized.

9 months agoAdd support for Pyrefly LSP for Python
Jostein Kjønigsen [Mon, 19 May 2025 08:00:37 +0000 (10:00 +0200)]
Add support for Pyrefly LSP for Python

* lisp/progmodes/eglot.el (eglot-server-programs): Add config
for Pyrefly.  (Bug#78492)

9 months ago; Sync with Tramp 2.7.3.30.2 (Do not merge to master)
Michael Albinus [Sun, 18 May 2025 19:20:41 +0000 (21:20 +0200)]
; Sync with Tramp 2.7.3.30.2 (Do not merge to master)

* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.

9 months agoAdapt Tramp version in customize-package-emacs-version-alist
Michael Albinus [Sun, 18 May 2025 19:12:41 +0000 (21:12 +0200)]
Adapt Tramp version in customize-package-emacs-version-alist

* lisp/net/trampver.el (customize-package-emacs-version-alist):
Add Tramp version integrated in Emacs 30.1.

9 months ago; * ChangeLog.5: Delete entry for minor change.
Sean Whitton [Sun, 18 May 2025 19:00:07 +0000 (20:00 +0100)]
; * ChangeLog.5: Delete entry for minor change.

9 months ago; Update ChangeLog and AUTHORS for Emacs 30.2
Eli Zaretskii [Sun, 18 May 2025 09:25:35 +0000 (05:25 -0400)]
; Update ChangeLog and AUTHORS for Emacs 30.2

* etc/AUTHORS:
^ ChangeLog.5: Update.

9 months ago; Update ldefs-boot.el. Do not merge to master.
Eli Zaretskii [Sun, 18 May 2025 09:24:11 +0000 (05:24 -0400)]
; Update ldefs-boot.el.  Do not merge to master.

9 months ago; Bump Emacs version to 30.1.90
Eli Zaretskii [Sun, 18 May 2025 09:08:31 +0000 (05:08 -0400)]
; Bump Emacs version to 30.1.90

* README:
* configure.ac:
* exec/configure.ac:
* java/AndroidManifest.xml.in (Version-code):
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 30.1.90.

9 months agoFix saving abbrevs by 'abbrev-edit-save-buffer'
Eli Zaretskii [Sat, 17 May 2025 10:00:13 +0000 (13:00 +0300)]
Fix saving abbrevs by 'abbrev-edit-save-buffer'

* lisp/abbrev.el (abbrev-edit-save-buffer): Reset
'abbrevs-changed'.  Suggested by Rick <rbielaws@gmail.com>.
(Bug#78435)

9 months ago; Remove confusing text from ELisp manual
Eli Zaretskii [Sat, 17 May 2025 09:35:29 +0000 (12:35 +0300)]
; Remove confusing text from ELisp manual

* doc/lispref/variables.texi (Defining Variables): Remove outdated
confusing warning.  For the details, see
https://lists.gnu.org/archive/html/emacs-devel/2025-05/msg00332.html.